import request from "@/utils/request";

//  列表
export function getCoverList(data) {
  return request({
    url: "/covering/list",
    method: "post",
    data,
  });
}
//  
export function getCoverById(data) {
  return request({
    url: "/covering/getById",
    method: "post",
    data,
  });
}
export function addCover(data) {
  return request({
    url: "/covering/add",
    method: "post",
    data,
  });
}
export function updateStatus(data) {
  return request({
    url: "/covering/updateStatus",
    method: "post",
    data,
  });
}
export function deleteByIdCover(data) {
  return request({
    url: "/covering/del",
    method: "post",
    data,
  });
}
//  获取保报工保养记录
export function listReportCare(query) {
  return request({
    url: '/mes/caredetail/reportcarelist',
    method: 'get',
    params: query
  })
}